package com.baseproject.rx.OnErrorHandler;

import com.baseproject.IRxSubscriberView;
import com.baseproject.datasource.ConfigParamsSubscriber;
import com.baseproject.util.LogUtils;

/**
 * Created by asus on 2017-09-12.
 */

public class DefaultErrorHandler extends BaseErrorHandler {

    public DefaultErrorHandler(Throwable e) {
        throwable = e;
    }

    @Override
    public void handleError(ConfigParamsSubscriber configParamsSubscriber, IRxSubscriberView iRxSubscriberView, IErrorStateListener iErrorStateListener) {
        LogUtils.logCatchedException(throwable);
    }

}
